package blue.mqtt4j.client;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Jin Zheng
 * @since 1.0 2020-10-21
 */
public class LoggerConnectionListener implements ConnectionListener
{
	private static Logger logger = LoggerFactory.getLogger(LoggerConnectionListener.class);

	public LoggerConnectionListener()
	{
	}

	@Override
	public void onConnected(String broker, MqttClient mqttClient)
	{
		logger.info(">>>>>>>>>> onConnected: {}", broker);
	}

	@Override
	public void onDisconnected(String broker, MqttOptions options)
	{
		logger.info("<<<<<<<<<< onDisconnected: {}", broker);
	}
}
